<?php 
header('Content-Type: text/html; charset=utf-8');
$f='not';
if (isset($_GET['f'])){
    $f=$_GET['f'];
}
$appId='wx834e8f7af9fb30b7';

$url='http://127.0.0.1:8031/api/wx/access_token?appId='.$appId.'&code='.$_GET['code'];
echo $url;
$getData=json_decode(file_get_contents($url), true);
$openid=$getData['data']['openid'];
echo '$openid:',$openid;
var_dump($getData);